package 责任链设计模式.风控;

public class Main {

    public static void main(String[] args) {
        RiskControllManager oneLevelRiskControllManager = new OneLevelRiskControllManager("初级风控");
        RiskControllManager secondLevelRiskControllManager = new SecondLevelRiskControllManager("中级风控");
        RiskControllManager threeLevelRiskControllManager = new ThreeLevelRiskControllManager("终极风控");
        oneLevelRiskControllManager.setNext(secondLevelRiskControllManager);
        secondLevelRiskControllManager.setNext(threeLevelRiskControllManager);


        Request request = new Request();
        request.setMoney(1000000);
        request.setRequestType(RequestType.TRANSFER);

        oneLevelRiskControllManager.handleRequest(request);
    }
}
